package com.wxy.test1.problem4;

public abstract class SetUpShop {
    private boolean isNeedTradingLicense = false;
    private boolean isNeedAdditional = false;
    public void NeedTradingLicense() {
        isNeedTradingLicense = true;
    }
    public void NeedAdditional() {
        isNeedAdditional = true;
    }
    // 等级名称
    public abstract void getShopName();
    // 排污许可证
    public abstract void getPolLicense();
    // 卫生许可证
    public abstract void getHyLicense();
    // 工商营业执照
    public abstract void getBusinessLicense();
    // 消防审批
    public abstract void getFireApproval();
    // 地税税务登记号
    public abstract void getLandtax();
    // 药品经营许可证
    public abstract void getTradingLicense();
    // 一些额外的审批手续
    public abstract void getAdditionalOperation();
    public void setupshop() {
        getShopName();
        getPolLicense();
        getHyLicense();
        getBusinessLicense();
        getFireApproval();
        getLandtax();
        if(isNeedTradingLicense) {
            getTradingLicense();
        }
        if (isNeedAdditional) {
            getAdditionalOperation();
        }
    }
}
